/*
 * @Author: your name
 * @Date: 2021-04-07 15:07:24
 * @LastEditTime: 2021-04-17 22:24:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \chronic-back-end\module\pushMod\model.go
 */

package pushMod

import (
	"chronic/module/userMod"

	"github.com/jinzhu/gorm"
)

type Push struct {
	gorm.Model
	Disease  string `gorm:"not null"`
	Sort     string `gorm:"not null"`
	Cover    string `gorm:"not null"`
	Title    string `gorm:"not null"`
	Picture1 string
	Text1    string
	Picture2 string
	Text2    string
	Text3    string
	AuthorID uint         `gorm:"not null"`
	Author   userMod.User `gorm:"foreignKey:AuthorID"`
}
